
#include "Student.h"

	Student::Student():Person(){
		id = 0;
		fname = "";
 		dob = "";
		addr = "";
		year = 0;
		program = "";
		classname="";
	}
	Student::Student(int i_id,string i_fname,string i_dob,string i_addr,int i_year,string i_program,string i_classname){
		id = i_id;
		fname = i_fname;
		dob = i_dob;
		addr = i_addr;
		year = i_year;
		program = i_program;
		classname = i_classname;
	}
	void Student::Show(){
		cout<<id<<":"<<fname<<":"<<dob<<":"<<addr<<":"<<year<<";"<<program<<";"<<classname<<"\n";
	}
	void Student::set_program(string n_program){
		program = n_program;
	}
    int Student::get_year(){
        return year;
    }
	string Student::get_program(){
        return program;
	}
	string Student::get_classname(){
		return classname;
	}
